package com.dimong.www.loan.db;

import com.dimong.loan.sdk.db.modal.BaseModel;
import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * Created by wuligang on 2018/5/29.
 */
@DatabaseTable(tableName = "check_total")
public class CheckTotalModel extends BaseModel {
    @DatabaseField(columnName = "year", dataType = DataType.INTEGER)
    public int year;

    @DatabaseField(columnName = "month", dataType = DataType.INTEGER)
    public int month;
    @DatabaseField(columnName = "day", dataType = DataType.INTEGER)
    public int day;
    @DatabaseField(columnName = "money", dataType = DataType.FLOAT)
    public float money;

    public CheckTotalModel() {

    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public float getMoney() {
        return money;
    }

    public void setMoney(float money) {
        if (money < 0) {
            money = 0;
        }
        this.money = money;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }
}
